import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 引入vuex import store from './store'      -- 3.6.2
const store = new  Vuex.Store({
    state:{
        currentPathName:''
    },
    mutations:{
        setPath(state){
            state.currentPathName = localStorage.getItem("currentPathName")
        }
    }
})

export default store